<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="user_id" value="{$user['id']}">
    <div class="form-group">
        <label for="desc" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="desc" name="nickname" value="{$user['nickname']}" readonly />
        </div>
    </div>
    <div class="form-group">
        <label for="temple_id" class="control-label col-xs-12 col-sm-2">{:__('Bind temple')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('temple_id', $temple_list, $user['temple_id'], ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>